package com.yangchuang.openpicture.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yangchuang.openpicture.pojo.UserStatistics;

/**
 * 用户统计服务接口
 * <p>
 * 该服务负责维护用户的统计数据，包括粉丝数、获赞数、收藏数、作品数等。
 * 使用Redis作为缓存层，提高性能，并定期同步到MySQL数据库。
 *
 * @author naiyi
 * @version 1.0
 * @since 2025-09-01
 */
public interface UserStatisticsService extends IService<UserStatistics> {
    void UserStatsHashUpdate(Long userId, Boolean liked, Boolean favorited, Boolean commented, Boolean followed, Boolean viewed, Boolean downloaded, Boolean like, Boolean favorite, Boolean comment, Boolean follow, Boolean download, Boolean view, Boolean publish);
}
